package com.zues.thread.create.pool;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @ClassName TestThreadPoolExecutors
 * @Description TODO
 * @Author zeus
 * @Date 3/21/2025 2:01 下午
 * @Version 1.0
 **/
@Slf4j(topic = "c.TestThreadPoolExecutors")
public class TestThreadPoolExecutors {

    public static void main(String[] args) {
        ExecutorService pool = Executors.newFixedThreadPool(2);
        pool.execute(()->{
            log.debug("running...1");
        });

        pool.execute(()->{
            log.debug("running...2");
        });

        pool.execute(()->{
            log.debug("running...3");
        });



    }

}
